<?xml version="1.0" encoding="utf-8" ?>
[#include "/WEB-INF/pages/common/taglibs.ftl"]
	<script type="text/javascript" src="[@c.url value='/js/plugins/jquery.alerts.js'/]"></script>
	<script type="text/javascript">
		var base = (function(){
			// 事件绑定
			function _addEventListeners() {
				
			};
			// item-delete
			function _itemDeleteEventListener() {
			}
			return {
                config: {
                	url : null,
                    theme: null
                },
                init: function () {
                    _addEventListeners();
                    _itemDeleteEventListener();
                }
			}
		}());
		
		$(function(){
			base.config.theme = getTheme();
            //Initializing the form
			base.init();
		})
	</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Email</title>
	<meta name="menu" content="CategoryMenu"/> 
	<meta name="heading" content="heading"/>
</head>
<body id="body">
	<div class="contenttitle">
    	<h2 id="vertical" class="form"><span>站点邮箱配置</span></h2>
    </div><!--contenttitle-->
    <br>
	<form action="[@c.url value="/manage/Config_updateEmail.action"/]?backurl=${action.currentUrl}" method="post" class="stdform stdform2">
		<p>
        	<label>邮件字符集：</label>
            <span class="field"><input class="smallinput" type="text" placeholder="请输入邮件字符集" name="${_Constants.FORM_ITEM_PREFIX}${(config.configItemMap['${_Constants.CONFIG_EMAIL_CHARSET}']).id?if_exists}" value="${((config.configItemMap['${_Constants.CONFIG_EMAIL_CHARSET}']).value)?if_exists}"/></span>
        </p>
        <p>
        	<label>邮件服务器：</label>
            <span class="field"><input class="smallinput" type="text" placeholder="请输入邮箱服务器" name="${_Constants.FORM_ITEM_PREFIX}${((config.configItemMap['${_Constants.CONFIG_EMAIL_SMTP}']).id)?if_exists}" value="${((config.configItemMap['${_Constants.CONFIG_EMAIL_SMTP}']).value)?if_exists}"/></span>
        </p>
        <p>
        	<label>邮箱地址：</label>
            <span class="field"><input type="text" placeholder="请输入邮箱地址" name="${_Constants.FORM_ITEM_PREFIX}${((config.configItemMap['${_Constants.CONFIG_EMAIL_ACCOUNT}']).id)?if_exists}" value="${((config.configItemMap['${_Constants.CONFIG_EMAIL_ACCOUNT}']).value)?if_exists}"/></span>
        </p>
        <p>
        	<label>邮箱账号：</label>
            <span class="field"><input type="text" placeholder="请输入邮箱账号" name="${_Constants.FORM_ITEM_PREFIX}${((config.configItemMap['${_Constants.CONFIG_EMAIL_USERNAME}']).id)?if_exists}" value="${((config.configItemMap['${_Constants.CONFIG_EMAIL_USERNAME}']).value)?if_exists}"/></span>
        </p>
        <p>
        	<label>邮箱密码：</label>
            <span class="field"><input type="text" placeholder="请输入邮箱密码" name="${_Constants.FORM_ITEM_PREFIX}${((config.configItemMap['${_Constants.CONFIG_EMAIL_PASSWORD}']).id)?if_exists}" value="${((config.configItemMap['${_Constants.CONFIG_EMAIL_PASSWORD}']).value)?if_exists}"/></span>
        </p>
	    <p class="stdformbutton">
	      	<button class="submit ">提&nbsp;&nbsp;交</button>
	        <input type="reset" value="重&nbsp;&nbsp;置" class="reset radius2" />
	        <a class="anchorbutton button_alert" href="${action.backurl}" style="margin-left:6px;background-color: rgb(247, 247, 247); border-color: rgb(204, 204, 204); color: rgb(51, 51, 51);"><span style="background-color: rgb(255, 255, 255); border-color: rgb(221, 221, 221);">返&nbsp;&nbsp;回</span></a>
	    </p>
	</form> 
	<div style="clear:both;"></div>
</body>
</html>
